package com.example.demo.ojcode;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-12-03
 * Time:14:09
 */
public class ExecCode {
    public static void compile(String cmd,String stdout,String stdError) throws IOException, InterruptedException {
        //创建子进程
        Runtime runtime = Runtime.getRuntime();
        //1、执行
        Process process = runtime.exec(cmd);
        //2、标准输出
        if(stdout != null) {

        }




        //3、标准错误







        //4、等待
        process.waitFor();
        return;
    }

}
